import request from '@/utils/request'

enum API {
    USERLOGIN_URL = '/api/user/login',
    USERLOGOUT_URL = '/api/user/logout',
    QQCHECK_URL = '/api/user/qqcheckcode',

    LOGINQQINFO_URL ='/api/user/getqqLoginInfo',
}

export const reqUserLogin = (loginParam:any) => request.post<any, any>(API.USERLOGIN_URL,loginParam)


export const reqUserLogout = () => request.get<any, any>(API.USERLOGOUT_URL)

export const reqQQCheck = () => request.get<any, any>(API.QQCHECK_URL)

    export const reqQQLoginInfo =(qqacount:any)=>request.post<any, any>(API.LOGINQQINFO_URL+'?qqacount='+qqacount)

